import request from '@/utils/request'

const api_name = '/admin/product/attr'
import {call} from "@/utils/rpc";
export default {

  getList(groupId) {
    let params = {
      page:1,
      limit:100,
      attrGroupId:groupId
    }
    return call("admin/product/attr/list",params)
  },
  getById(id) {
    return call("admin/product/attr/getById",{_id:id})
  },

  save(role) {
    return call("admin/product/attr/add",role)
  },

  updateById(role) {
    return call("admin/product/attr/update",role)
  },
  removeById(id) {
    return call("admin/product/attr/delete",[id])
  },
  removeRows(idList) {
    return call("admin/product/attr/delete",idList)
  }
}
